<?php
/*
 * @Description: 商城会员
 * @Author: franktrue 807615827@qq.com
 * @Date: 2021-07-13 13:23:19
 * @LastEditTime: 2021-07-13 13:35:12
 */
namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;

/**
 *
 * Class AccountUser
 *
 * @since 2.0
 *
 * @Entity(table="shop_member")
 */
class ShopMember extends Model
{
    /**
     * The name of the "created at" column.
     *
     * @var string
     */
    protected const CREATED_AT = 'create_at';

    /**
     * The name of the "updated at" column.
     *
     * @var string
     */
    protected const UPDATED_AT = 'update_at';

    /**
     * @Id()
     *
     * @Column()
     *
     * @var int|null
     */
    private $id;

    /**
     * @Column()
     * 
     * @var int
     */
    private $uid;

    /**
     * @Column()
     *
     * @var string
     */
    private $nickname;

    /**
     * @Column()
     *
     * @var string
     */
    private $avatar;

    /**
     * @Column()
     *
     * @var string
     */
    private $gender;

    /**
     * @Column()
     *
     * @var int
     */
    private $role;

    /**
     * @Column(name="create_at")
     *
     * @var int
     */
    private $createAt;

    /**
     * @Column(name="update_at")
     *
     * @var int
     */
    private $updateAt;

    /**
     * Get the value of uid
     *
     * @return  int
     */ 
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * Set the value of uid
     *
     * @param  int  $uid
     *
     * @return  self
     */ 
    public function setUid(int $uid)
    {
        $this->uid = $uid;

        return $this;
    }

    /**
     * Get the value of nickname
     *
     * @return  string
     */ 
    public function getNickname()
    {
        return $this->nickname;
    }

    /**
     * Set the value of nickname
     *
     * @param  string  $nickname
     *
     * @return  self
     */ 
    public function setNickname(string $nickname)
    {
        $this->nickname = $nickname;

        return $this;
    }

    /**
     * Get the value of avatar
     *
     * @return  string
     */ 
    public function getAvatar()
    {
        return $this->avatar;
    }

    /**
     * Set the value of avatar
     *
     * @param  string  $avatar
     *
     * @return  self
     */ 
    public function setAvatar(string $avatar)
    {
        $this->avatar = $avatar;

        return $this;
    }

    /**
     * Get the value of gender
     *
     * @return  string
     */ 
    public function getGender()
    {
        return $this->gender;
    }

    /**
     * Set the value of gender
     *
     * @param  string  $gender
     *
     * @return  self
     */ 
    public function setGender(string $gender)
    {
        $this->gender = $gender;

        return $this;
    }

    /**
     * Get the value of role
     *
     * @return  int
     */ 
    public function getRole()
    {
        return $this->role;
    }

    /**
     * Set the value of role
     *
     * @param  int  $role
     *
     * @return  self
     */ 
    public function setRole(int $role)
    {
        $this->role = $role;

        return $this;
    }
}